package com.daxt.model.dic;

/**
 * @description: 版本标识
 *
 * @author: lig
 * @date: 2021/6/10
 */
public enum VersionsMarkType {

	VERSIONS_0(0,"默认档案馆"), //
	VERSIONS_1(1,"清徐档案馆"), //
	VERSIONS_2(2,"内蒙档案馆"), //
	VERSIONS_3(3,"孝义档案馆"), //
	VERSIONS_4(4,"文水档案馆"), //
	VERSIONS_5(5,"路桥档案馆"), //
	VERSIONS_6(6,"阳高档案馆"), //
	;

	private int key;
	private String value;

	private VersionsMarkType(int key, String value) {
		this.key = key;
		this.value = value;
	}
	public int getKey() {
		return key;
	}

	public void setKey(int key) {
		this.key = key;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}



	public static boolean hasKey(String key) {
		VersionsMarkType[] values = VersionsMarkType.values();
		for (VersionsMarkType type : values) {
			if(type.name().equals(key)) {
				return true;
			}
		}
		return false;
	}
}
